home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Animation How-To
/
Animation How-to CD.iso
/
PLY
/
CHAPTER5
/
SHATTER
/
COLOR2.BAS
< prev
next >
Wrap
BASIC Source File
|
1994-01-01
|
759b
|
37 lines
' COLORER.BAS
OPEN "col2.inc" FOR OUTPUT AS #1
PRINT #1, "define reflective"
PRINT #1, "surface {"
PRINT #1, " ambient 0.1"
PRINT #1, " diffuse 0.7"
PRINT #1, " specular white, 0.7"
PRINT #1, " microfacet Phong 10"
PRINT #1, " reflection white, 0.7"
PRINT #1, " }"
PRINT #1,
FOR a = 1 TO 192
x = RND
y = .5 * RND
z = RND
c$ = RIGHT$("000" + LTRIM$(STR$(a)), 3)
col$ = "color" + c$
PRINT #1, USING "define \ \ < #.####, #.####, #.#### > "; col$; x; y; z
NEXT a
PRINT #1,
FOR a = 1 TO 192
c$ = RIGHT$("000" + LTRIM$(STR$(a)), 3)
ref$ = "refl_" + c$
col$ = "color" + c$
PRINT #1, USING "define \ \ texture { reflective { color \ \ } }"; ref$; col$
NEXT a
CLOSE #1